<!DOCTYPE html>
<html lang="en">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Dashboard Template for Bootstrap</title>
    <!-- Bootstrap core CSS -->
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
</head>

<body>
<div th:replace="~{commons/commons::topbar}"></div>

<div class="container-fluid">
    <div class="row">
        <div th:replace="~{commons/stu_commons::sidebar(active='personal.html')}"></div>

        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4">
            <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pb-2 mb-3 border-bottom">
                <h1 class="h2">宿舍信息</h1>
                <div class="btn-toolbar mb-2 mb-md-0">


                </div>
            </div>
            <div class="table-responsive">
                <table  border="1" class="table table-striped table-sm">
                    <tr>
                        <th>学号:</th>
                        <td th:text="${stu.getNumber()}"></td>
                    </tr>
                    <tr>
                        <th>姓名:</th>
                        <td th:text="${stu.getName()}"></td>
                    </tr>
                    <tr>
                        <th>性别:</th>
                        <td th:text="${stu.getSex()==0?'女':'男'}"></td>
                    </tr>
                    <tr>
                        <th>电话号码:</th>
                        <td th:text="${stu.getPhone()}"></td>
                    </tr>
                    <tr>
                        <th>宿舍楼:</th>
                        <td th:text="${stu.getDormitory().getBuildingNO()}"></td>
                    </tr>
                    <tr>
                        <th>宿舍号:</th>
                        <td th:text="${stu.getDormitory().getDormitoryNo()}"></td>
                    </tr>
                </table>
            </div>
        </main>
    </div>
</div>



</body>

</html>